<?php
require_once 'Zend/View/Helper/Abstract.php';

class Zend_View_Helper_Score extends Zend_View_Helper_Abstract
{
   public function score($uid,$type)
    {
	
	//若未登录，则不显示评分

	
	if($this->view->authInfo->memb_uid =="")
	{
		$str = '';
		return $str;
	
	}
	
	
	 //评分类型
	if($type =='bus' ||$type =='exh' )
	{
		$type = 'union';
	}
	
		$type = trim($type);
			
		$str ='<script> var uid= '.$uid.'; var comm_type="'.$type.'_comment"; var type="'.$type.'";</script>';
		$str .= "<p id='vote'></p>";
		
		return $str;
    }
    
    
}